const loading = {
  state: {
    isLoading: false
  },
  mutations: {
    SET_LOADING: (state, info) => {
      state.isLoading = info
    }
  },
  actions: {
    START_LOADING ({ commit }, load) {
      commit('SET_LOADING', load)
    }
  },
  getters: {
    getLoading (state) {
      return state.isLoading
    }
  }
}
export default loading
